import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import i18n from './locale'
import ArcoVueIcon from '@arco-design/web-vue/es/icon'
import 'virtual:uno.css'
import '@unocss/reset/tailwind-compat.css'
import '@arco-design/web-vue/es/message/style/index.css'
import './index.css'
import { Notification } from '@arco-design/web-vue'
import '@arco-design/web-vue/es/notification/style/index.css'
import { createPinia } from 'pinia'
import piniaPluginPersist from 'pinia-plugin-persistedstate'

const app = createApp(App)

const pinia = createPinia()
pinia.use(piniaPluginPersist)

app.use(router)
app.use(pinia)
app.use(i18n)
app.use(ArcoVueIcon)
Notification._context = app._context
app.config.globalProperties.$notify = Notification

app.mount('#app')
